package com.pernix.authen.network;
import java.io.Serializable;
public class AuthenMessage implements Serializable {
	private static final long serialVersionUID = 4517775213313819507L;
	public AuthenMessageType authenMessageType;
	public byte[] serverChallenge;
	public byte[] peerChallenge;
	public String username;
	public String password;
	public String message;
	public AuthenMessage(AuthenMessageType authenMessageType) {
		this(authenMessageType, null, null, null, null);
	}
	
	public AuthenMessage(AuthenMessageType authenMessageType, String message) {
		this(authenMessageType, null, null, null, null);
		this.message = message;
	}
	
	public AuthenMessage(AuthenMessageType authenMessageType,  byte[] serverChallenge) {
		this(authenMessageType, serverChallenge, null, null, null);
	}
	
	public AuthenMessage(AuthenMessageType authenMessageType, byte[] serverChallenge, byte[] peerChallenge, String username, String password){
		this.authenMessageType = authenMessageType;
		this.serverChallenge = serverChallenge;
		this.peerChallenge = peerChallenge;
		this.username = username;
		this.password = password;
	}
}
